package com.my.zuji.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class TestAnnotationAspect {
	//声明环绕通知  
    @Around("execution(* com.my.zuji.service.PublicService.*(..))")
    public Object doAround(ProceedingJoinPoint pjp) throws Throwable {  
        System.out.println("进入方法---环绕通知");  
        Object o = pjp.proceed();
        System.out.println("退出方法---环绕通知");  
        return o;
    }
}
